// ...existing code...

// 引入路由
const diagnosisRoutes = require('./routes/diagnosis');
const authRoutes = require('./routes/auth');  // 新增

// ...existing code...

// 注册API路由
app.use('/api/diagnosis', diagnosisRoutes(pool));
app.use('/api/auth', authRoutes(pool));  // 新增

// ...existing code...
